<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>管理台-小区快驹</title>

    <!-- Bootstrap Core CSS -->
    <link href="__PUBLIC__/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <link href="__PUBLIC__/bower_components/datatables/media/css/jquery.dataTables.css" rel="stylesheet">
    <link rel="stylesheet" href="__PUBLIC__/bower_components/zTree_v3/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="__PUBLIC__/bower_components/plupload/css/jquery-ui.css" type="text/css" />
    <link rel="stylesheet" href="__PUBLIC__/bower_components/plupload/css/jquery.ui.plupload.css" type="text/css" />
    <link href="__PUBLIC__/bower_components/datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <!-- MetisMenu CSS -->
    <link href="__PUBLIC__/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">

    <!-- Timeline CSS -->
    <link href="__PUBLIC__/dist/css/timeline.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="__PUBLIC__/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <link href="__PUBLIC__/bower_components/morrisjs/morris.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="__PUBLIC__/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href='{:U("Admin/Index/index/")}'>小区快驹</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a href='#' class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bell"></i><b class="caret"></b><span class="label label-danger" id="new_order_num"></span> </a>
                    <ul class="dropdown-menu alert-dropdown" id="new_order_detail">
                        <li class="divider"></li>
                        <li>
                            <a href="#" onclick="toOrder()">查看全部</a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>&nbsp;&nbsp;&nbsp;
                    {$Think.session.admin.name}</a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href=""><i class="fa fa-user fa-fw"></i>{$Think.session.admin.name}， 欢迎您！</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href='{:U("Admin/Index/doLogout/")}'><i class="fa fa-sign-out fa-fw"></i> 注销</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="Search...">
                                <span class="input-group-btn">
                                <button class="btn btn-default" type="button">
                                    <i class="fa fa-search"></i>
                                </button>
                            </span>
                            </div>
                            <!-- /input-group -->
                        </li>


                         <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 订单管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href='{:U("Admin/Order/orderList/")}'> 订单列表</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/Order/deliverList/")}'> 发货单列表</a>
                                </li>
                                 <li>
                                    <a href='{:U("Admin/Order/returnList/")}'> 退货单列表</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 商品管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <if condition="session('admin')['type'] != '0'">
                                <li>
                                    <a href='{:U("Admin/Product/productTemplateList/")}'> 商品模板列表</a>
                                </li>
                                </if>
                                 <li>
                                    <a href='{:U("Admin/Product/productList/")}'> 商品列表</a>
                                </li>
                                <if condition="session('admin')['type'] != '0'">
                                <li>
                                    <a href='{:U("Admin/Product/productClassList/")}'> 商品分类</a>
                                </li>
                                </if>
                                <if condition="session('admin')['type'] != '0'">
                                <li>
                                    <a href='{:U("Admin/Product/productCommentList/")}'> 用户评论</a>
                                </li>
                                </if>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <if condition="session('admin')['type'] != '0'">
                        <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 仓库管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href='{:U("Admin/Repository/aRepositoryList/")}'> A类仓库列表</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/Repository/bRepositoryList/")}'> B类仓库列表</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        </if>
                        <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 报表统计<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <!-- <li>
                                    <a href='{:U("Admin/Statistic/inRepository/")}'> 仓库入库报表</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/Statistic/outRepository/")}'> 仓库出库报表</a>
                                </li> -->
                                <if condition="session('admin')['type'] != '0'">
                                <li>
                                    <a href='{:U("Admin/Statistic/abRepositorySupply/")}'> AB仓库补货统计报表</a>
                                </li>
                                </if>
                                <li>
                                    <a href='{:U("Admin/Statistic/abRepositorySale/")}'> AB仓库销售统计报表</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/Statistic/bRepositoryDeliver/")}'> B类仓库送货单</a>
                                </li>
                                <if condition="session('admin')['type'] != '0'">
                                <li>
                                    <a href='{:U("Admin/Statistic/allRepositorySupply/")}'> 总仓库补货统计报表</a>
                                </li>
                                </if>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <if condition="session('admin')['type'] != '0'">
                        <li>
                            <a href='{:U("Admin/Homepage/feedback/")}'><i class="fa fa-dashboard fa-fw"></i> 意见反馈</a>
                        </li>

                        <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 促销管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href='{:U("Admin/Product/productDiscountList/")}'> 查看今日折扣</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/Product/productDiscountAdd/")}'> 新增今日折扣</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/Product/productShoppingActivity/")}'> 购物车活动</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 二手物品管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href='{:U("Admin/Secondhand/secondhandProduct/")}'> 二手物品列表</a>
                                </li>
                                <li> 
                                    <a href='{:U("Admin/Secondhand/secondhandComment/")}'> 二手物品评论</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                          <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 小区管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href='{:U("Admin/District/districtList/")}'> 小区列表</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/District/notificationList/")}'> 小区公告</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <li>
                            <a href='{:U("Admin/User/userList/")}'><i class="fa fa-dashboard fa-fw"></i> 用户列表</a>
                        </li> 
                        <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 首页管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href='{:U("Admin/Homepage/homepagePicture/")}'> 轮播图管理</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/Homepage/homepageAdvertisement/")}'> 广告管理</a>
                                </li>
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <if condition="$Think.session.admin.type eq '2'">
                        <li>
                            <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 后台用户管理<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href='{:U("Admin/Admin/adminList/")}'> 后台用户列表</a>
                                </li>
                                <li>
                                    <a href='{:U("Admin/Admin/adminCredit/")}'> 积分操作日志</a>
                                </li>
                            </ul>
                        </li>
                        <else />
                        </if>
                        </if>
                        <li>
                            <a href='{:U("Admin/Repository/repositoryWarn/")}'><i class="fa fa-dashboard fa-fw"></i> 库存警告提示</a>
                        </li> 
                       
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>
        <div id="page-wrapper">